package com.acme.serialization;

import java.io.InputStream;
import java.io.OutputStream;

/**
 * @author Gregory Sobko
 */
public interface ObjectSerializer<T> {
    String getProtocolName();

    T deserialize(InputStream inputStream) throws SerializationException;

    void serialize(T object, OutputStream outputStream) throws SerializationException;

}
